package eu.tolu.cableSpotter;

import eu.tolu.cableSpotter.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

    public void onNavButtonClick(final View view) {
    	switch (view.getId()) {
    	case R.id.bt_get_list:
    		startActivity(new Intent(this, CountryList.class));
    		break;
    	case R.id.bt_get_local_spots:
    		startActivity(new Intent(this, FindLocalCable.class));
    		break;
    	case R.id.bt_view_data_options:
    		startActivity(new Intent(this, DataOptions.class));
    		break;
    	}
    }
}
